// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class GeneratorUseRate : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<GeneratorUseRate, MasterDbContextLocator>
    {

        public int GeneratorUseRateId { get; set; }
        public int? AreaId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string Extension { get; set; }
        public string GensetNum { get; set; }
        public int? GenRunTimes { get; set; }
        public int? AreaGenRunTimes { get; set; }
        public string UtilPercentPeriod { get; set; }
        public string UtilidlePeriod { get; set; }
        public string AverageUtilPercentPeriod { get; set; }
        public int? GenRunPeriod { get; set; }
        public DateTime? GenStop { get; set; }
        public string GeneratorPhase { get; set; }
        public string GeneratorTypeNo { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
    
        public void Configure(EntityTypeBuilder<GeneratorUseRate> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.AverageUtilPercentPeriod).HasMaxLength(50);

                entityBuilder.Property(e => e.Extension).HasMaxLength(20);

                entityBuilder.Property(e => e.GenStop).HasColumnType("datetime");

                entityBuilder.Property(e => e.GeneratorPhase).HasMaxLength(50);

                entityBuilder.Property(e => e.GeneratorTypeNo).HasMaxLength(50);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(50);

                entityBuilder.Property(e => e.UtilPercentPeriod).HasMaxLength(50);

                entityBuilder.Property(e => e.UtilidlePeriod).HasMaxLength(50);
        }

    }
}

